home *** CD-ROM | disk | FTP | other *** search
/ Champak 49 / Volume 49 - JOGO DISK .iso / Games / honeytrouble.swf / scripts / DefineSprite_480 / frame_1 / DoAction.as < prev   
Encoding:
Text File  |  2007-09-27  |  721 b   |  28 lines

  1. trace(" _root.SoundStop = " + _root.SoundStop + " _root.Sound_con. = " + _root.Sound_con.getVolume());
  2. if(_root.SoundStop == undefined)
  3. {
  4.    this.gotoAndStop(1);
  5.    _root.Sound_con.setVolume(100);
  6. }
  7. else if(_root.SoundStop == false || _root.Sound_con.getVolume() == 0)
  8. {
  9.    this.gotoAndStop(2);
  10.    _root.Sound_con.setVolume(0);
  11. }
  12. this.onPress = function()
  13. {
  14.    trace(" _root.SoundStop = " + _root.SoundStop);
  15.    if(_root.SoundStop == undefined)
  16.    {
  17.       _root.Sound_con.setVolume(0);
  18.       _root.SoundStop = false;
  19.       this.gotoAndStop(2);
  20.    }
  21.    else if(_root.SoundStop == false)
  22.    {
  23.       _root.Sound_con.setVolume(100);
  24.       _root.SoundStop = null;
  25.       this.gotoAndStop(1);
  26.    }
  27. };
  28.